|
In machine learning and mathematical optimization, loss functions for classification are computationally feasible loss functions representing the price paid for inaccuracy of predictions in classification problems. Given as the vector space of all possible inputs, and ''Y'' = as the vector space of all possible outputs, we wish to find a function which best maps to . However, because of incomplete information, noise in the measurement, or probabilistic components in the underlying process, it is possible for the same to generate different . As a result, the goal of the learning problem is to minimize expected risk, defined as : where represents the loss function, and represents the probability distribution of the data, which can equivalently be written using Bayes' theorem as : In practice, the probability distribution is unknown. Consequently, utilizing a training set of independently and identically distributed samples : drawn from the data sample space, one seeks to minimize empirical risk : as a proxy for expected risk.〔 (See statistical learning theory for a more detailed description.) For computational ease, it is standard practice to write loss functions as functions of only one variable. Within classification, loss functions are generally written solely in terms of the product of the true classifier and the predicted value .〔 〕 Selection of a loss function within this framework : impacts the optimal which minimizes empirical risk, as well as the computational complexity of the learning algorithm. Given the binary nature of classification, a natural selection for a loss function (assuming equal cost for false positives and false negatives) would be the 0–1 indicator function which takes the value of 0 if the predicted classification equals that of the true class or a 1 if the predicted classification does not match the true class. This selection is modeled by : where indicates the Heaviside step function. However, this loss function is non-convex and non-smooth, and solving for the optimal solution is an NP-hard combinatorial optimization problem. As a result, it is better to substitute continuous, convex loss function surrogates which are tractable for commonly used learning algorithms. In addition to their computational tractability, one can show that the solutions to the learning problem using these loss surrogates allows for the recovery of the actual solution to the original classification problem.〔 〕 Some of these surrogates are described below. ==Bounds for classification== Utilizing Bayes' theorem, it can be shown that the optimal for a binary classification problem is equivalent to : (when ). Furthermore, it can be shown that for any convex loss function , where is the function that minimizes this loss, if and is decreasing in a neighborhood of 0, then where is the sign function (for proof see 〔). Note also that in practice when the loss function is differentiable at the origin. This fact confers a consistency property upon all convex loss functions; specifically, all convex loss functions will lead to consistent results with the 0–1 loss function given the presence of infinite data. Consequently, we can bound the difference of any of these convex loss function from expected risk.〔 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Loss functions for classification」の詳細全文を読む スポンサード リンク
|